package com.caocaog.market.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.system.base.entity.AllEntity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品规格
 *
 * @author jeecg-boot
 * @date 2021-11-12
 */
@Data
@TableName("mk_goods_specifications")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mk_goods_specifications对象", description = "商品规格")
public class GoodsSpec extends AllEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "商品id")
    private String goodsId;

    @ApiModelProperty(value = "属性名称")
    private String name;

    @Deprecated
    @ApiModelProperty(value = "属性描述")
    private String description;

    @ApiModelProperty(value = "售价")
    private String price;

    @ApiModelProperty(value = "重量")
    private String weight;

    @ApiModelProperty(value = "重量（克）")
    private Integer weightG;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "打包费")
    private String packFee;

    // TODO 等前端把小程序选择规格界面的图片不再是规格的Picture时就把这删了
    @Deprecated
    @ApiModelProperty(value = "图片")
    private String picture;

    /**
     * 商品可获得积分
     */
    @ApiModelProperty(value = "可获得积分")
    private BigDecimal goodPoint;
}
